package com.newtouch.cq.lang.config;

import lombok.Getter;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

/**
 * @author Alex
 * @Description 缓存配置项
 * @time 2021/8/19 15:38
 */
@Getter
@Configuration
@ConfigurationProperties("mcc.cache")
public class CacheProperties {

    /**
     * 图片验证码过期时间
     */
    public static Long imageCodeTimeout = 3600L;

    public static String imageCodePrifix = "mcc:image:code:";

    public void setImageCodeTimeout(Long imageCodeTimeout) {
        CacheProperties.imageCodeTimeout = imageCodeTimeout;
    }
}
